<?php 
$uname=$_GET['user'];
$pwd=$_GET['password'];

$existuser=['zhangsan','lisi','wangwu'];
if(in_array($usrname,$existuser)){
    echo "此用户已经被注册";
}else{
    echo "√";
}

?>